#ifndef GAMEWIDGET_H
#define GAMEWIDGET_H

#include <QWidget>
#include "stdfax.h"
#include "dataconfig.h"
#include "coin.h"


class GameWidget : public QWidget
{
    Q_OBJECT
public:
    explicit GameWidget(QWidget *parent = nullptr);
    GameWidget(int);
    //关卡
    int num;
    void paintEvent(QPaintEvent *);

private:
    int gameMap[4][4];
    Coin * coinArray[4][4];
    void flipCoin(int x, int y);
    bool win=false;
    QPropertyAnimation * animation;

signals:
    void sendBackToSelectpane();

};

#endif // GAMEWIDGET_H
